export const menuIconList = [
  { icon: "icon-baocun", title: "保存" },
  { icon: "icon-dayin", title: "打印" },
  { icon: "icon-lishi", title: "历史记录" },
  { icon: "icon-chexiao", title: "撤销" },
  { icon: "icon-zhongzuo", title: "重做" },
];

export const menuTextList = [
  "开始",
  "插入",
  "页面",
  "引用",
  "审阅",
  "视图",
  "工具",
  "会员专享",
];

export const active1 = [
  { icon: "icon-geshishua", title: "格式刷" },
  { icon: "icon-fuzhi", title: "复制" },
  { icon: "icon-niantie", title: "粘贴" },
  { icon: "icon-jianqie", title: "剪切" },
  { icon: "icon-cachu", title: "清除" },
  { icon: "icon-anjianfengexian", title: "" },
  // 下一个icon
  { icon: "icon-zihaojia", title: "增加字号" },
  { icon: "icon-zihaojian", title: "减少字号" },
  { icon: "icon-cuti", title: "加粗" },
  { icon: "icon-italic", title: "斜体" },
  { icon: "icon-zitixiahuaxian", title: "下划线" },
  { icon: "icon-strikethrough", title: "删除线" },
  { icon: "icon-icon_tuchuxianshi", title: "高亮" },
  { icon: "icon-zitiyanse", title: "字体颜色" },
  { icon: "icon-anjianfengexian", title: "" },
  { icon: "icon-juzuoduiqi", title: "左对齐" },
  { icon: "icon-juzhongduiqi", title: "居中对齐" },
  { icon: "icon-juyouduiqi", title: "右对齐" },
  { icon: "icon-liangduanduiqi1", title: "两端对齐" },
  { icon: "icon-youxuliebiao", title: "有序列表" },
  { icon: "icon-wuxuliebiao", title: "无序列表" },
  { icon: "icon-anjianfengexian", title: "" },
];

export const fontFamily = [
  {
    label: "常用字体",
    list: [
      {
        value: "宋体",
        label: "宋体",
      },
      {
        value: "黑体",
        label: "黑体",
      },
    ],
  },
  {
    label: "所有字体",
    list: [
      {
        value: "微软雅黑",
        label: "微软雅黑",
      },
      {
        value: "宋体",
        label: "宋体",
      },
      {
        value: "黑体",
        label: "黑体",
      },
      {
        value: "仿宋",
        label: "仿宋",
      },
      {
        value: "楷体",
        label: "楷体",
      },
      {
        value: "等线",
        label: "等线",
      },
      { label: "华文琥珀", value: "华文琥珀" },
      { label: "华文楷体", value: "华文楷体" },
      { label: "华文隶书", value: "华文隶书" },
      { label: "华文新魏", value: "华文新魏" },
      { label: "华文行楷", value: "华文行楷" },
      { label: "华文中宋", value: "华文中宋" },
      { label: "华文彩云", value: "华文彩云" },
    ],
  },
];

export const fontSize = [
  { value: 56, label: "初号" },
  { value: 48, label: "小初" },
  { value: 34, label: "一号" },
  { value: 32, label: "小一" },
  { value: 29, label: "二号" },
  { value: 24, label: "小二" },
  { value: 21, label: "三号" },
  { value: 20, label: "小三" },
  { value: 18, label: "四号" },
  { value: 16, label: "小四" },
  { value: 14, label: "五号" },
  { value: 12, label: "小五" },
  { value: 10, label: "六号" },
  { value: 8, label: "小六" },
  { value: 7, label: "七号" },
  { value: 6, label: "八号" },
];

export const titleLevel = [
  { label: "正文", level: "none", value: "16px" },
  { label: "标题1", level: "first", value: "26px" },
  { label: "标题2", level: "second", value: "24px" },
  { label: "标题3", level: "third", value: "22px" },
  { label: "标题4", level: "fourth", value: "20px" },
  { label: "标题5", level: "fifth", value: "18px" },
  { label: "标题6", level: "sixth", value: "16px" },
];

// 配置项
export const options = {
  margins: [100, 120, 100, 120], // 调整四个三角的页边距
  // 水印
  watermark: {
    data: "CANVAS-EDITOR",
    size: 120,
  },

  // canvas-editor 页脚分页显示格式
  pageNumber: {
    format: "第{pageNo}页/共{pageCount}页",
  },
  placeholder: {
    data: "请输入正文",
  },

  maskMargin: [60, 0, 30, 0], // 菜单栏高度60，底部工具栏30为遮盖层
};

// 初始化数据源
export const mockdata = {
  header: [
    {
      value: "第一人民医院",
      size: 32,
      rowFlex: "center",
    },
    {
      value: "\n门诊病历",
      size: 18,
      rowFlex: "center",
    },
    {
      value: "\n",
      type: "separator",
      width: 554,
    },
  ],
  main: [
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "主诉：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "\n发热三天，咳嗽五天。",
      size: 16,
    },
    {
      value: "",
      type: "control",
      control: {
        conceptId: "1",
        type: "text",
        value: [],
        placeholder: "其他补充",
        prefix: "{",
        postfix: "}",
      },
    },
    {
      value: "\n",
      size: 16,
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "现病史：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value:
        "\n患者于三天前无明显诱因，感冒后发现面部水肿，无皮疹，尿量减少，出现乏力，在外治疗无好转，现来我院就诊。\n",
      size: 16,
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "既往史：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "\n有糖尿病10年，有高血压2年，有",
      size: 16,
    },
    {
      value: "传染性疾病",
      size: 16,
      color: "#FF0000",
    },
    {
      value: "1年。",
      size: 16,
    },
    {
      value: "",
      type: "control",
      control: {
        conceptId: "2",
        type: "select",
        value: [],
        code: null,
        placeholder: "有无",
        prefix: "{",
        postfix: "}",
        valueSets: [
          {
            value: "有",
            code: "98175",
          },
          {
            value: "无",
            code: "98176",
          },
          {
            value: "不详",
            code: "98177",
          },
        ],
      },
    },
    {
      value: "报告其他既往疾病。\n",
      size: 16,
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "流行病史：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "\n否认14天内接触过",
      size: 16,
    },
    {
      value: "",
      type: "hyperlink",
      url: "https://hufe.club/canvas-editor",
      valueList: [
        {
          value: "新冠肺炎",
          size: 16,
          color: "#0000FF",
          underline: true,
        },
      ],
    },
    {
      value:
        "确诊患者、疑似患者、无症状感染者及其密切接触者；否认14天内去过以下场所：水产、肉类批发市场，农贸市场，集市，大型超市，夜市；否认14天内与以下场所工作人员密切接触：水产、肉类批发市场，农贸市场，集市，大型超市；否认14天内周围（如家庭、办公室）有2例以上聚集性发病；否认14天内接触过有发热或呼吸道症状的人员；否认14天内自身有发热或呼吸道症状；否认14天内接触过纳入隔离观察的人员及其他可能与新冠肺炎关联的情形；陪同家属无以上情况。\n",
      size: 16,
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "体格检查：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "\nT：39.5℃",
      size: 16,
    },
    {
      value: "∆",
      type: "subscript",
      color: "#FF0000",
    },
    {
      value: "，P：80bpm，R：20次/分，BP：120/80mmHg；\n",
      size: 16,
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "辅助检查：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "\n2020年6月10日，普放：",
      size: 16,
    },
    {
      value: "血细胞比容",
      highlight: "#F2F27F",
      groupIds: ["1"],
    },
    {
      value: "36.50%（偏低）40～50；单核细胞绝对值0.75*10",
      size: 16,
    },
    {
      value: "9",
      type: "superscript",
    },
    {
      value: "/L（偏高）参考值：0.1～0.6；\n",
      size: 16,
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "门诊诊断：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "",
      type: "list",
      valueList: [
        {
          value: "高血压\n糖尿病\n病毒性感冒\n过敏性鼻炎\n过敏性鼻息肉",
        },
      ],
      listType: "ol",
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "处置治疗：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "",
      type: "list",
      valueList: [
        {
          value:
            "超声引导下甲状腺细针穿刺术；\n乙型肝炎表面抗体测定；\n膜式病变细胞采集术、后颈皮下肤层；",
        },
      ],
      listType: "ol",
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "电子签名：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "【",
      size: 16,
    },
    {
      value:
        "",
      type: "image",
      width: 89,
      height: 32,
    },
    {
      value: "】\n",
      size: 16,
    },
    {
      value: "",
      type: "title",
      valueList: [
        {
          value: "其他记录：",
          size: 18,
          bold: true,
        },
      ],
      level: "first",
    },
    {
      value: "",
      type: "table",
      trList: [
        {
          height: 42,
          tdList: [
            {
              colspan: 1,
              rowspan: 2,
              value: [
                {
                  value: "1.",
                  size: 16,
                },
              ],
            },
            {
              colspan: 1,
              rowspan: 1,
              value: [
                {
                  value: "2.",
                  size: 16,
                },
              ],
            },
            {
              colspan: 2,
              rowspan: 1,
              value: [
                {
                  value: "3.",
                  size: 16,
                },
              ],
            },
          ],
          minHeight: 42,
        },
        {
          height: 42,
          tdList: [
            {
              colspan: 1,
              rowspan: 1,
              value: [
                {
                  value: "4.",
                  size: 16,
                },
              ],
            },
            {
              colspan: 1,
              rowspan: 1,
              value: [
                {
                  value: "5.",
                  size: 16,
                },
              ],
            },
            {
              colspan: 1,
              rowspan: 1,
              value: [
                {
                  value: "6.",
                  size: 16,
                },
              ],
            },
          ],
          minHeight: 42,
        },
        {
          height: 42,
          tdList: [
            {
              colspan: 1,
              rowspan: 1,
              value: [
                {
                  value: "7.",
                  size: 16,
                },
              ],
            },
            {
              colspan: 1,
              rowspan: 1,
              value: [
                {
                  value: "8.",
                  size: 16,
                },
              ],
            },
            {
              colspan: 1,
              rowspan: 1,
              value: [
                {
                  value: "9.",
                  size: 16,
                },
              ],
            },
            {
              colspan: 1,
              rowspan: 1,
              value: [
                {
                  value: "10.",
                  size: 16,
                },
              ],
            },
          ],
          minHeight: 42,
        },
      ],
      width: 520,
      height: 126,
      colgroup: [
        {
          width: 180,
        },
        {
          width: 80,
        },
        {
          width: 130,
        },
        {
          width: 130,
        },
      ],
    },
    {
      value: "是否同意以上内容：",
    },
    {
      value: "",
      type: "control",
      control: {
        conceptId: "3",
        type: "checkbox",
        code: "98175",
        value: [
          {
            value: "同意否定",
          },
        ],
        valueSets: [
          {
            value: "同意",
            code: "98175",
          },
          {
            value: "否定",
            code: "98176",
          },
        ],
      },
    },
    {
      value: "\n医学公式：",
    },
    {
      value: "{E_k} = hv - {W_0}",
      type: "latex",
      width: 102,
      height: 25,
    },
    {
      value: "\n签署日期：",
    },
    {
      value: "",
      type: "date",
      valueList: [
        {
          value: "2022-08-10 17:30:01",
        },
      ],
    },
    {
      value: "\n患者签名：",
    },
    {
      value: "",
      type: "control",
      control: {
        conceptId: "4",
        type: "text",
        value: [],
        placeholder: "",
        prefix: "‌",
        postfix: "‌",
        minWidth: 160,
        underline: true,
      },
    },
    {
      value: "\n",
    },
    {
      value: "",
      type: "tab",
    },
    {
      value: "EOF",
      size: 16,
    },
  ],
  footer: [
    {
      value: "canvas-editor",
      size: 12,
    },
  ],
};
